home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: SIN?
- Date: 8 Apr 1996 09:59:19 -0400
- Organization: University of Maryland Baltimore County
- Message-ID: <4kb63n$37g@umbc9.umbc.edu>
- References: <90.50656.1119@svis.org>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- Cory Pollock <cory.pollock@svis.org> wrote:
- |> Can someone please wirte a little program to show me what the function
- |> SIN((FLOAT)X) does?
-
- It doesn't do anything because SIN() is not a standard C function. Perhaps
- you mean sin()? With a case sensitive language you need to be careful.
- Assuming all lowercase for moment then it will cast the value of x to
- float, pass this to the sin() function which will return a result. To be
- honest the cast isn't really necessary if using an ANSI C compiler with
- a correct prototype for sin() in scope.
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-